package com.cnap.model.user;

/**
 * 用户管理系统通用响应
 *
 * @author xc
 **/
public class UserSysCommonResult<T> {
    // code
    private long code;
    // message
    private String message;
    // data
    private T data;
    // success
    private boolean success;

    /**
     * get
     *
     * @return Code
     */
    public long getCode() {
        return code;
    }

    /**
     * set
     *
     * @param code code
     */
    public void setCode(long code) {
        this.code = code;
    }

    /**
     * get
     *
     * @return Message
     */
    public String getMessage() {
        return message;
    }

    /**
     * set
     *
     * @param message message
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * get
     *
     * @return Data
     */
    public T getData() {
        return data;
    }

    /**
     * set
     *
     * @param data data
     */
    public void setData(T data) {
        this.data = data;
    }

    /**
     * get
     *
     * @return Success
     */
    public boolean isSuccess() {
        return success;
    }

    /**
     * set
     *
     * @param success success
     */
    public void setSuccess(boolean success) {
        this.success = success;
    }
}
